<template>
  <div class="footer">
    <h1>Footer</h1>
    <p>count的值:{{ count1 }}</p>
    <p>price的值:{{ price }}</p>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: "Footer",
  mounted(){

  },
  computed:{
    // ...mapState({price1:"price"})
    ...mapState({ count1: "count" ,price:"price"}),
  }
};
</script>

<style>
.footer {
  margin: 30px;
  background: palevioletred;
}
</style>